package com.hc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User  implements Serializable {
    private static final long serialVersionUID = 7714153274847479614L;

    /**
     * 编号
     */
    private Integer id;

    /**
     * 账号
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 生日
     */
    private LocalDate birth;

    /**
     * 性别
     */
    private Boolean gender;

    /**
     * 头像
     */
    private String img;

    /**
     * QQ
     */
    private String qq;

    /**
     * 联系电话
     */
    private String tel;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 排序
     */
    private Integer level;

    /**
     * 简介
     */
    private String info;

    /**
     * 盐值
     */
    private String salt;

    /**
     * 入职日期
     */
    private LocalDateTime inTime;

    /**
     * 离职日期
     */
    private LocalDateTime outTime;

    /**
     * 状态：1解锁 2锁定 3离职
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
